<template>
  <div class="case-item-box" @click="onDetail(data)">
    <div class="icon-box"></div>
    <div class="title-box">
      <div class="title">{{data.name}}</div>
      <div class="detail-btn">
        查看案例
        <div class="right3-icon"></div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    data: {
      type: Object,
      default() {
        return {};
      }
    }
  },
  methods: {
    onDetail(item) {
      let routerJump = this.$router.resolve({ name: 'InformationDetail', query: {uuid: item.resId} });
      window.open(routerJump.href, '_blank');
    }
  }
}
</script>

<style lang="scss" scoped>
.case-item-box {
  overflow: hidden;
  background: #F9F9F9;
  border-radius: 4px;
  padding: 16px 20px;
  border-bottom: 1px solid #F1F1F1;
  cursor: pointer;
  .icon-box {
    width: 40px;
    height: 40px;
    background: url('../../../assets/case.png') no-repeat;
    background-size: cover;
    float: left;
    margin-right: 12px;
  }
  .title-box {
    width: 288px;
    float: left;
    .title {
      font-size: 16px;
      
      font-weight: 400;
      color: #272727;
      line-height: 24px;
      margin-bottom: 8px;
    }
    .detail-btn {
      border-radius: 4px;
      height: 20px;
      font-size: 14px;
      
      font-weight: 400;
      color: #A8A8A8;
      line-height: 20px;
      .right3-icon {
        width: 14px;
        height: 14px;
        background: url('../../../assets/right3.png') no-repeat;
        background-size: cover;
        display: inline-block;
        vertical-align: middle;
      }
    }
  }
}
</style>